TouchCost: Cost Analysis of TouchDevelop Scripts

نویسندگان

  • Pietro Ferrara
  • Daniel Schweizer
  • Lucas Brutschy
چکیده

TouchDevelop is a novel programming environment and language for mobile devices. TouchDevelop applications are typically developed by non-expert users, rather small, and published on the cloud. In this paper, we introduce TouchCost, a new static analysis that infers the cost of loops in TouchDevelop programs. TouchCost (i) applies an existing generic analyzer to infer numerical invariants, (ii) extracts cost relation systems from these invariants, and (iii) solves them using an existing upper bound solver. TouchCost has been implemented and applied to all TouchDevelop scripts that are currently published on the cloud. Experimental results show that TouchCost is both scalable and precise. Studying the outputs of TouchCost, we glimpse two major applications: (i) establishing at runtime the cost of a loop, and move its execution to the cloud if it is too expensive w.r.t. the available resources, and (ii) helping a non-expert developer to debug his program.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Preliminary Field Study of Game Programming on Mobile Devices

TouchDevelop is a new programming environment that allows users to create applications on mobile devices. Applications created with TouchDevelop have continued to grow in popularity since TouchDevelop was first released to public in 2011. This paper presents a field study of 31,699 applications, focusing on different characteristics between 539 game scripts and all other non-game applications, ...

متن کامل

Transparent Privacy Control via Static Information Flow Analysis

A common problem faced by modern mobile-device platforms is that thirdparty applications in the marketplace may leak private information without notifying users. Existing approaches adopted by these platforms provide little information on what applications will do with the private information, failing to effectively assist users in deciding whether to install applications and in controlling the...

متن کامل

RoboRun: A gamification approach to control flow learning for young students with TouchDevelop

This demo paper introduces young students to writing code in a touch enabled interactive maze game. Problem-based learning is given a gamified approach to learning, while simultaneously introducing the TouchDevelop [1] platform to build basic first control flow algorithms and to learn about ordering and loops in conditional statements.

متن کامل

Code Similarity in TouchDevelop: Harnessing Clones

The number of applications available in mobile marketplaces is increasing rapidly. It’s very easy to become overwhelmed by the sheer size of their codebase. We propose to use code clone analysis to help manage existing applications and develop new ones. First, we propose an automatic application ranking scheme based on (dis)similarity. Traditionally, applications in app stores are ranked manual...

متن کامل

Beyond Open Source: The TouchDevelop Cloud-based Integrated Development and Runtime Environment

The creation and maintenance of mobile applications is a complex process, involving a set of technologies ranging from an application programming language and integrated development environment (IDE), through the deployment and update models of the various app stores, to a cloud back end that stores user and telemetry data (with its own programming language and a variety of hosting issues). We ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014